import React from "react";
import { Button as AntdButton } from "antd";
import { ButtonProps } from "../types";

const Button: React.FC<ButtonProps> = ({
  children,
  type = "default",
  size = "middle",
  ...rest
}) => {
  return (
    <AntdButton type={type} size={size} {...rest}>
      {children}
    </AntdButton>
  );
};

export default Button;
